#include<stdio.h>
#define PRICE 30
	int main(void)
	{  
	   int x;
       scanf("%d", &x);
       printf("%d\n", x * PRICE);
       return 0;
	}
